﻿<%@ Page Language="C#" MasterPageFile="~/manage/manage.Master" AutoEventWireup="true" CodeBehind="streams.aspx.cs" Inherits="SimpleSocxs.manage.streams" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:PlaceHolder ID="phSuccess" Visible = "false" runat="server">
    <div>
        <h1>Search Results: Top(20)</h1>
        <asp:GridView class="common_table" style="font-size:0.8em" AllowPaging="true" PageSize = "20" ID="gvSocialResult" runat="server" EnableViewState="false">
            <PagerTemplate></PagerTemplate>
        </asp:GridView>
        <div style="text-align:center; font-size:1.2em; font-weight:bold;margin:10px;">
            Stream Name : 
            <asp:TextBox ID="txtStreamName" runat="server"></asp:TextBox>
            <asp:Button ID="btnAddStream" runat="server" Text="Add Steam" OnClick="OnAddStream" />
        </div>
    </div>
</asp:PlaceHolder>

<asp:PlaceHolder ID="phError" Visible = "false" runat="server">
    <div style="width:100%">
        <h1>Error:</h1>
        <textarea id="txtError" rows="10" cols="100" runat="server"></textarea>
    </div>    
</asp:PlaceHolder>

<table class="common_table">
    <tr>
        <td>Twitter(input username): </td>
        <td><asp:TextBox ID="txtTwitterUsername" runat="server"></asp:TextBox></td>           
        <td><asp:Button ID="btnFindTwitter" CommandArgument="Twitter" runat="server" Text="Search" OnClick="OnFindSocialStream" /></td>
    </tr>
    <tr>
        <td>Youtube(input username): </td>
        <td><asp:TextBox ID="txtYoutubeUsername" runat="server"></asp:TextBox>      </td>              
        <td><asp:Button ID="btnFindYoutube" CommandArgument="Youtube" runat="server" Text="Search" OnClick="OnFindSocialStream" /></td>
    </tr>
    <tr>
        <td>Flickr(input username):  </td>
        <td><asp:TextBox ID="txtFlickrUsername" runat="server"></asp:TextBox>       </td>              
        <td><asp:Button ID="btnFindFlickr" CommandArgument="Flickr" runat="server" Text="Search" OnClick="OnFindSocialStream" /> </td>
    </tr>                    
    <tr>
        <td>Blogger(input username): </td>
        <td><asp:TextBox ID="txtBloggerUsername" runat="server"></asp:TextBox>     </td>               
        <td><asp:Button ID="btnFindBlogger" CommandArgument="Blogger" runat="server" Text="Search" OnClick="OnFindSocialStream" /></td>
    </tr>
</table>
               
<asp:Repeater ID="rptStreams" runat="server">
    <HeaderTemplate>
    <table class="common_table">     
    <tr>
        <th>ID</th>
        <th>Name</th>
        <th>Type</th>
        <th>UserID</th>
        <th>Updated</th>
        <th></th>
    </tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
        <td><%#Eval("ID")%></td>
        <td><%#Eval("Name")%></td>
        <td><%#Eval("StreamType")%></td>
        <td><%#Eval("UserID")%></td>
        <td><%#Eval("UpdatedOn")%></td>
        <td>
            <asp:LinkButton runat="server" Text="Update" OnClick="OnUpdateStream" CommandArgument='<%#Eval("ID")%>' />
            <asp:LinkButton runat="server" Text="Delete" OnClick="OnDeleteStream" CommandArgument='<%#Eval("ID")%>' />
        </td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
</asp:Repeater>        
</asp:Content>
